{% extends "base.html" %}
{% block title %}Artist: {{ artist.name }}{% endblock %}
{% block css %}artists.css{% endblock %}
{% block content %}
	<div class="artist_caption">Artist Profile</div>
	<div class="artist_profile">
		<div class="portrait">
			{% if artist.portrait_source_image %}
				<img src="{{ MEDIA_URL }}{{ artist.detail_image }}" alt="portrait" />
			{% else %}
				<img src="{{ MEDIA_URL }}img/portrait_missing.png" alt="portrait" />
			{% endif %}
		</div>
		<div class="text">
			<div class="name">{{ artist.name }}</div>
			<div class="profession">{{ artist.profession }}</div>
			<div class="bio">
				{{ artist.bio_html|safe }}
			</div>
			<div class="work">
				<ul class="samples">
					{% for photo in artist.samples %}
						<li>
							<a href="{{ photo.get_absolute_url }}">
								<img src="{{ MEDIA_URL }}{{ photo.thumbnail_image }}" alt="{{ photo.title }}" />
							</a>
						</li>
					{% endfor %}
				</ul>
				<a href="{% url key-photos "artist" artist.slug %}">{{ artist.first_name_genitive }} photos</a>
				(<a class="feed" href="{{ artist.get_feed_url }}">RSS feed</a>),
				<a href="{% url author-posts artist.slug None %}">{{ artist.first_name_genitive }} blog posts</a>
				(<a class="feed" href="{{ artist.get_blog_feed_url }}">RSS feed</a>)
			</div>
		</div>
	</div>
{% endblock %}
